﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminMaster.Master" AutoEventWireup="true" CodeBehind="QLThanhPho.aspx.cs" Inherits="QLVMBAY.Admin.QLThanhPho" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContentAdmin" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="PageName">QUẢN LÝ SÂN BAY</div>
<asp:Panel ID="pnView" runat="server">
<div class="Control">
<ul><li><asp:LinkButton CssClass="vadd" ID="lbtAddT" runat="server" onclick="AddButton_Click">Thêm mới</asp:LinkButton></li>
<li> <asp:LinkButton CssClass="vrefresh" ID="lbtRefreshT" runat="server" onclick="RefreshButton_Click">Làm mới</asp:LinkButton></li>
</ul></div>
<asp:Datagrid ID="grdThanhPho" runat="server" width="100%" CssClass="TableView" AutoGenerateColumns="False" AllowPaging="False" onitemdatabound="grdThanhPho_ItemDataBound" onitemcommand="grdThanhPho_ItemCommand" onpageindexchanged="grdThanhPho_PageIndexChanged"> <HeaderStyle CssClass="trHeader"></HeaderStyle> <ItemStyle CssClass="trOdd"></ItemStyle> <AlternatingItemStyle CssClass="trEven"></AlternatingItemStyle> <Columns>
<asp:BoundColumn DataField="MaThanhPho" HeaderText="Mã Thành Phố" ItemStyle-CssClass="TextShort" Visible="true" />
<asp:BoundColumn DataField="TenThanhPho" HeaderText="Tên Thành Phố" ItemStyle-CssClass="Text" Visible="true" />
<asp:TemplateColumn ItemStyle-CssClass="Text"><HeaderTemplate>Quốc gia</HeaderTemplate>
<ItemTemplate>
<asp:Label ID="lblTenQG" runat="server"  Text=" Label">
    </asp:Label>
</ItemTemplate>
</asp:TemplateColumn>
<asp:TemplateColumn ItemStyle-CssClass="Function"> <HeaderTemplate>Chức năng</HeaderTemplate> 
<ItemTemplate>
    <asp:ImageButton ID="cmdEdit" runat="server" AlternateText="Sửa" CommandName="Edit" CssClass="Edit" ToolTip="Sửa" ImageUrl="/App_Themes/Admin/images/edit.png" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"MaThanhPho")%>' />
    <asp:ImageButton ID="cmdDelete" runat="server" AlternateText="Xóa" CommandName="Delete" CssClass="Delete" ToolTip="Xóa" ImageUrl="/App_Themes/Admin/images/delete.png" CommandArgument='<%#DataBinder.Eval(Container.DataItem,"MaThanhPho")%>' OnClientClick="javascript:return confirm('Bạn có muốn xóa?');" />
</ItemTemplate> 
</asp:TemplateColumn>
</Columns></asp:Datagrid>
</asp:Panel>
<asp:Panel ID="pnUpdate" runat="server" Visible="false">
<table class="TableUpdate" border="0">
<tr> <th class="style2"> <asp:Label ID="lblMaTP" runat="server" Text="Mã thành phố:"></asp:Label></th>
    <td><asp:TextBox ID="txtMaTP" runat="server" CssClass="text" Width="380px"></asp:TextBox><asp:RequiredFieldValidator ID="rfvMaTP" runat="server" ControlToValidate="txtMaTP" Display="Dynamic" ErrorMessage="*" SetFocusOnError="True"></asp:RequiredFieldValidator></td></tr>
<tr> <th class="style2"> <asp:Label ID="lblTenTP" runat="server" Text="Tên thành phố:"></asp:Label></th>
    <td><asp:TextBox ID="txtTenTP" runat="server" CssClass="text" Width="380px"></asp:TextBox><asp:RequiredFieldValidator ID="rfvTenTP" runat="server" ControlToValidate="txtTenTP" Display="Dynamic" ErrorMessage="*" SetFocusOnError="True"></asp:RequiredFieldValidator></td></tr>   
<tr> <th> <asp:Label ID="lblTenQG" runat="server" Text="Quốc gia:"></asp:Label></th>
    <td>
        <asp:DropDownList ID="DropQG" runat="server" Width="380px">            
        </asp:DropDownList>
</td></tr>
<tr> <td class="Control" colspan="2"><ul><li><asp:LinkButton CssClass="update" ID="lbtUpdate" runat="server" onclick="Update_Click">Ghi lại</asp:LinkButton></li>
 <li> <asp:LinkButton CssClass="uback" ID="lbtBack" runat="server"  onclick="Back_Click" CausesValidation="False">Trở về</asp:LinkButton></li> </ul></td> </tr></table>
</asp:Panel>
</asp:Content>
